package com.shushan.home.bean;

/**
 * @ClassName: TimeAwardBean
 * @Desciption: //智学奖励条目数据bean
 * @author: zhangshihao
 * @date: 2018-04-10
 */
public class TimeAwardBean {

    //练习类型
    private int exerciseType = ToyAwardBean.TYPE_SYNC_EXERCISE;
    //练习次数
    private int exerciseTimes;
    //完成人数
    private int completeChildNum ;
    //正在练习人数
    private int exercisingChildNum;

    public static String getConditionStr(int times,int exerciseType){
        StringBuffer sb = new StringBuffer();
        if(exerciseType != ToyAwardBean.TYPE_WRONG_TOPIC){
            sb = sb.append("完成")
                    .append(String.valueOf(times))
                    .append("次")
                    .append(ToyAwardBean.getExerciseNameByType(exerciseType));
        }else{
            sb = sb.append("完成")
                    .append(ToyAwardBean.getExerciseNameByType(exerciseType));
        }
        return sb.toString();
    }

    public static String getCompleteExercisingStr(String completeNum,String exercisingNum){
        StringBuffer sb = new StringBuffer();
        sb = sb.append(completeNum)
                .append("人已经完成 | ")
                .append(exercisingNum)
                .append("人正在练习");
        return sb.toString();
    }

    public int getExerciseType() {
        return exerciseType;
    }

    public void setExerciseType(int exerciseType) {
        this.exerciseType = exerciseType;
    }

    public int getExerciseTimes() {
        return exerciseTimes;
    }

    public void setExerciseTimes(int exerciseTimes) {
        this.exerciseTimes = exerciseTimes;
    }

    public int getCompleteChildNum() {
        return completeChildNum;
    }

    public void setCompleteChildNum(int completeChildNum) {
        this.completeChildNum = completeChildNum;
    }

    public int getExercisingChildNum() {
        return exercisingChildNum;
    }

    public void setExercisingChildNum(int exercisingChildNum) {
        this.exercisingChildNum = exercisingChildNum;
    }
}
